<?php

use think\facade\Env;

return [
    'appId' => Env::get('weixin.app_id', 'wxe5bd5f4d492e109e'),
    'appSecret' => Env::get('weixin.app_secret', 'd9a3767eb75c04fa5513b1fef28e30ec'),
    'redirect_uri' => Env::get('weixin.redirect_uri', 'jbs.test'),
    'mini_program' => [
        'app_id' => Env::get('weixin.app_id', 'wxe5bd5f4d492e109e'),
        'secret' => Env::get('weixin.app_secret', 'd9a3767eb75c04fa5513b1fef28e30ec'),

        // 下面为可选项
        // 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
        'response_type' => 'array',

        'log' => [
            'level' => 'debug',
            'file' => __DIR__ . '/wechat.log',
        ],
    ],
    'wx_pay' => [
        'app_id' => Env::get('wx_pay.app_id', 'wxe5bd5f4d492e109e'),
        'mch_id' => Env::get('wx_pay.mch_id', '1618102241'),
        'mch_key' => Env::get('wx_pay.mch_key', 'wxe5bd5f4d492e109e'),
        'notify' => Env::get('wx_pay.notify_url', 'http://api.kirapark.com/pay/notify'),
        'apiv3' => Env::get('wx_pay.apiv3', 'foKt3NE2SeMFfqzlXs3j7Z1ft7Afonjf'),
    ],
    'wx_template'=>[
        'to_book'=>Env::get('wx_template.to_book','joMRYLyCIQhQCnZ4rTGejtUe15JzYPdacx4YnKaR_4k'),
        'refund'=>Env::get('wx_template.refund','toVvRd01akXPpV5YGqB1l1ijsL3DBTBjJ5NxCpIQ3Uw'),
        'book_success'=>Env::get('wx_template.book_success','HYPMOsrFA0jRAo5_4hfX7AuVOkcxsnqjCrx65cAAS2w'),
    ]
];